$(function() {
	var page = 1;
	var jsonStr;
	var store_person_contact_str;
	var person_phone;
	var store_person_yzm_str;
	var store_person_wx;
	var store_person_gz;
	$.ajax({
			type: "POST",
			url: "http://yx.fxtourong.com/V1/Apply/getApplyList",
			data: {
				page: page
			},
			dataType: "json",
			success: function(data) {
				var code = data.code;
				console.log(code);
				if(code == "1") {
					jsonStr = data.data;
					for(var i = 0; i<jsonStr.length; i++){
						var industry = jsonStr[i];
						$("#bm_ul").append(" <li class='am-g' style='text-align: center;'>" + " <div class='am-u-sm-2'>" + industry.linkman + "</div>" + 
										" <div class='am-u-sm-2'>" + industry.phone + "</div>" + 
										" <div class='am-u-sm-3'>" + industry.company + "</div>" + 
										" <div class='am-u-sm-3'>" + industry.email + "</div>" + 
										" <div class='am-u-sm-2'>" + industry.created_time + "</div>" + "</li>");
					}
				}
			}
		});
		
	$("#more_btn").click(function(){
		page = page + 1;
		$.ajax({
			type: "POST",
			url: "http://yx.fxtourong.com/V1/Apply/getApplyList",
			data: {
				page: page
			},
			dataType: "json",
			success: function(data) {
				var code = data.code;
				console.log(code);
				if(code == "1") {
					jsonStr = data.data;
					for(var i = 0; i<jsonStr.length; i++){
						var industry = jsonStr[i];
						$("#bm_ul").append(" <li class='am-g' style='text-align: center;'>" + " <div class='am-u-sm-2'>" + industry.linkman + "</div>" + 
										" <div class='am-u-sm-2'>" + industry.phone + "</div>" + 
										" <div class='am-u-sm-3'>" + industry.company + "</div>" + 
										" <div class='am-u-sm-3'>" + industry.email + "</div>" + 
										" <div class='am-u-sm-2'>" + industry.created_time + "</div>" + "</li>");
					}
				}
			}
		});
	});
});